/**
 * 新员工面谈安排
 */
import React from 'react';
import { Form } from 'antd';
import { FormLayout } from '../../components';

// 面谈类型
const TALK_TYPE_MAP = {
    1: '试用反馈面谈',
    2: '周评面谈',
    3: '月评面谈',
    4: '季评面谈',
    5: '提前转正评估面谈',
    6: '转正评估面谈'
};

// 面谈方式
const INTERVIEW_WAY_MAP = {
    1: '现场',
    2: '视频',
    3: '电话',
    4: '笔试',
    99: '其他'
};

export default function DetailDiscussArrange({ data = {} }) {
    const {
        interviewType,
        interviewWay,
        interviewStartTime = '',
        interviewEndTime = '',
        interviewLocation = '',
        interviewerEmployeeName = ''
    } = data;

    return (
        <div>
            <FormLayout type="col2">
                <Form.Item label="面谈类型">{TALK_TYPE_MAP[interviewType] || '-'}</Form.Item>
                <Form.Item label="面谈方式">{INTERVIEW_WAY_MAP[interviewWay] || '-'}</Form.Item>
            </FormLayout>
            <FormLayout type="col2">
                <Form.Item label="面谈地点">{interviewLocation}</Form.Item>
                <Form.Item label="面谈时间">{`${interviewStartTime} ~ ${interviewEndTime}`}</Form.Item>
            </FormLayout>
            <FormLayout type="full">
                <Form.Item label="参与人">{interviewerEmployeeName}</Form.Item>
            </FormLayout>
        </div>
    );
}
